package com.company.作业;

import java.util.Scanner;

public class sb {
    public static void main(String[] args) {
        int s=a();
        System.out.println(s);

    }
    public static int a(){
        int x3,y3,z3,s;
        Scanner in=new Scanner(System.in);
        System.out.println("请输入x");
        int x=in.nextInt();
        System.out.println("请输入y");
        int y=in.nextInt();
        System.out.println("请输入z");
        int z=in.nextInt();
        x3=x*x*x; y3=y*y*y; z3=z*z*z;
        s=x3+y3+z3;
        return s;
    }

}








